<?php
/*由bean脚本生成 powerBy--joe*/
namespace app\common\model;

use app\common\bean\UserBean;
use app\common\bean\UserRechargeBean;

class UserRechargeModel extends BaseModel
{
	protected $table = 'user_recharge';
	/**
	* @return UserRechargeModel
	*/
	static function getInstance(){
		return parent::getInstance();
	}

    /** 所属用户
     * @return \think\model\relation\BelongsTo
     */
    public function user(){
        return $this->belongsTo('UserModel',UserRechargeBean::$userId,UserBean::$id);
    }
}
